//
//  ZYQEditVCardViewController.m
//  小庆聊天室
//
//  Created by 张毓庆 on 13-12-8.
//  Copyright (c) 2013年 张毓庆. All rights reserved.
//

#import "ZYQEditVCardViewController.h"

@interface ZYQEditVCardViewController ()

@property (weak, nonatomic) IBOutlet UITextField *context;
- (IBAction)savaData:(id)sender;

@end

@implementation ZYQEditVCardViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view.
    // 设置标题
    self.title = self.contextTitle;
    // 设置标签控件
    _context.text = self.contentLabel.text;
    
    [_context becomeFirstResponder];
}


- (IBAction)savaData:(id)sender
{
    // 将修改后的数据在重新设置到上级的文本标签中
    _contentLabel.text = _context.text;
    // 返回到上级菜单
    [self.navigationController popViewControllerAnimated:YES];
    // 通知代理需要保存名片
    [_delegate editvCardViewControllerDidFinish];
}
@end
